home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / Reference / DevCon / Milan_1991 / Devcon91.4 / AppShell / Examples / Timer / timer.h < prev   
Encoding:
C/C++ Source or Header  |  1992-09-01  |  1.2 KB  |  50 lines

  1. /*
  2.  * timer.h
  3.  *
  4.  * Appshell Timer Handler Include Data
  5.  * Copyright (C) 1991 Kompositor Software
  6.  * Written by John F Wiederhirn
  7.  *
  8.  */
  9.  
  10. /* This defines the memory class wanted from all allocations */
  11. /* within the handler.  The MEMF_PUBLIC may or may not be */
  12. /* necessary, but this is the safe approach. */
  13.  
  14. #define MEMFLAGS (MEMF_CLEAR|MEMF_PUBLIC)
  15.  
  16. /* These flag values can also be allocated for Timer Handler */
  17. /* from Commodore-Amiga.  Again, I hope a gap is left. */
  18.  
  19. #define APSH_TIMER_ID        9000L
  20.  
  21. /* The following Tags can be allocated for Timer Handler from */
  22. /* Commodore-Amiga.  Hopefully, a gap will be left in case */
  23. /* more are needed. */
  24.  
  25. #define TIMER_Dummy        TAG_USER+26000L
  26. #define APSH_TimerMode        (TIMER_Dummy + 1L)
  27. #define APSH_TimerLen        (TIMER_Dummy + 2L)
  28. #define APSH_TimerKill        (TIMER_Dummy + 3L)
  29.  
  30. /* These flag values are handler-private and can thus be whatever */
  31. /* happens to be convenient. */
  32.  
  33. #define TH_STRTMODE        0L
  34. #define TH_TICKING        1L
  35. #define TH_ONESHOT        2L
  36. #define TH_ENDMODE        3L
  37.  
  38. #ifndef    ASM
  39. #define    ASM    __asm
  40. #endif
  41.  
  42. #ifndef    REG
  43. #define    REG(x)    register __ ## x
  44. #endif
  45.  
  46. /* Only public function. */
  47. struct MsgHandler * ASM setup_timerA (REG(d0) struct AppInfo *, REG(d1) struct TagItem *);
  48.  
  49. /* END OF TIMER_HAN.H */
  50.